<?php
include($folder.'/layouts/code-behind/frontend.php');
function blc_gyerekszaj_select($from, $itemsPerPage)
{
	$returnValue =
		query(
			'SELECT content FROM gyerekszaj ORDER BY created DESC LIMIT :from,:itemsPerPage',
			array('from'=>$from, 'itemsPerPage'=>$itemsPerPage));
/*	foreach ($returnValue as &$row)
	{
		$row['content'] =
			str_replace("\n", '<br />', $row['content']);
	}*/
	return $returnValue;
}
function blc_gyerekszaj_select_count()
{
	return queryScalar('SELECT COUNT(*) FROM gyerekszaj', null);
}
$master['action'] = null;
$master['attributes'] = null;
// $master['pageTitle'] = 'Gyerekszáj';
?>